package com.gonsin.i18n.logic.services;

//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gonsin.i18n.logic.config.I18nConfig;
import com.google.gson.GsonBuilder;
import lombok.SneakyThrows;
import org.apache.commons.io.FileUtils;

import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;

public class KeywordFileModel {

    // @ApiModelProperty("标记该json文件是否为I18n的文件")
    private String marker;

    // 语言标题
    private String title;

    // 关键字
    private String lang;

    /**
     * 项目名字
     */
    private String projectName;

    // @ApiModelProperty("字符串键值对")
    private Map<String, String> messages;

    private Map<String, Extra> extras;

    public KeywordFileModel() {
        this.marker = "gonsin";
        this.messages = new HashMap<>();
        this.extras = new HashMap<>();
    }


    public String getMarker() {
        return marker;
    }

    public void setMarker(String marker) {
        this.marker = marker;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public Map<String, String> getMessages() {
        return messages;
    }

    public void setMessages(Map<String, String> messages) {
        this.messages = messages;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Map<String, Extra> getExtras() {
        return extras;
    }

    public void setExtras(Map<String, Extra> extras) {
        this.extras = extras;
    }
}
